import tkinter as tk

def OnBtn(abc):
    print("on click btn", abc)

top = tk.Tk()
top.title('Hello Tk')
top.geometry('640x480+100+100')
top.resizable(True, False)
btn = tk.Button(top, text = 'btn', command = OnBtn)
btn.pack()

top.mainloop()
